import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  { 
    path: '/', 
    component: () => import('./views/home/index.vue')
  },
  { 
    path: '/home/info', 
    component: () => import('./views/home/info.vue')
  },
  { 
    path: '/box', 
    component: () => import('./views/box/index.vue')
  },
  { 
    path: '/box/token', 
    component: () => import('./views/box/token.vue')
  },
  { 
    path: '/union', 
    component: () => import('./views/union/index.vue')
  },
  { 
    path: '/union/buy', 
    component: () => import('./views/union/buy.vue')
  },
  { 
    path: '/union/list', 
    component: () => import('./views/union/list.vue')
  },
  { 
    path: '/hash', 
    component: () => import('./views/hash/index.vue')
  },
  { 
    path: '/token', 
    component: () => import('./views/token/index.vue')
  },
  { 
    path: '/token/log', 
    component: () => import('./views/token/log.vue')
  },
  { 
    path: '/token/take/log', 
    component: () => import('./views/token/take_log.vue')
  },
  { 
    path: '/token/fill/log', 
    component: () => import('./views/token/fill_log.vue')
  },
  { 
    path: '/vote', 
    component: () => import('./views/vote/index.vue')
  },
  { 
    path: '/nft', 
    component: () => import('./views/nft/index.vue')
  },
  { 
    path: '/market', 
    component: () => import('./views/market/index.vue')
  },
  { 
    path: '/market/my', 
    component: () => import('./views/market/my.vue')
  },
  { 
    path: '/dao', 
    component: () => import('./views/dao/index.vue')
  },
  { 
    path: '/dao/my', 
    component: () => import('./views/dao/my.vue')
  },
]

export default createRouter({
  history: createWebHashHistory(),
  routes
})